
	#include "cGame_Ingame_InitMatch.h"
	#include "cGame_Ingame_Camera.h"
	#include "cGame_Ingame_Cursor.h"
	#include "cGame_Ingame_DrawMap.h"
	#include "cGame_Ingame_DrawPlayerInfo.h"
	#include "cGame_Ingame_Dice.h"
	#include "cGame_Ingame_HandleRound.h"
	#include "cGame_Ingame_FirstRound.h"
	#include "cGame_Ingame_StandardRound.h"
	#include "cGame_Ingame_BattleResults.h"
	#include "cGame_Ingame_Cards.h"
	#include "cGame_Ingame_Tools.h"
	#include "cGame_Ingame_Checkwin.h"
	#include "cGame_Ingame_UpdateNPC.h"
	
	public static int ingame_state = 0;
	public static int prev_ingame_state = 0;
	
	public static void SetIngameState(int new_state)
	{
		prev_ingame_state = ingame_state;
		ingame_state = new_state;
	}
		
	public void UpdateIngame()
	{
		switch(ingame_state)
		{
			case STATES.INGAME_INIT:
				#ifndef REMOVE_IMAGES
				splashImg = null;
				#endif
				initMatch();
				SetIngameState(STATES.INGAME_FIRST_ROUND);
			break;
			
			case STATES.INGAME_LOAD_MATCH:
				UpdateLoadMatch();
			break;
			
			case STATES.INGAME_FIRST_ROUND:
				UpdateFirstRound();
			break;
			
			case STATES.INGAME_STANDARD_ROUND:
				UpdateStandardRound();
			break;
			
			case STATES.INGAME_TOOLS:
				UpdateIngameTools();
				clearKeys();
			break;
			
			case STATES.INGAME_MATCH_END:
				UpdateWinner();
				clearKeys();
			break;
		}
	}